| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | const assert = require('assert'); |
||
| 9 | describe('GeezConverterTest', function () { |
||
| 10 | |||
| 11 | describe('#test_geez_converter()', function () { |
||
| 12 | it('should convert ascii number to geez', function () { |
||
| 13 | TestCase.geezNumberTestDataProvider().forEach(([$number, $geez_number]) => { |
||
| 14 | $result = geezConverter.convert($number); |
||
|
|
|||
| 15 | assert.equal($geez_number, $result); |
||
| 16 | }); |
||
| 17 | }); |
||
| 18 | }); |
||
| 19 | |||
| 20 | describe('#test_invalid_number_throw_exception()', function () { |
||
| 21 | it('should throws NotAnIntegerArgumentException', function () { |
||
| 22 | TestCase.invalidNumberDataProvider().forEach(($number) => { |
||
| 23 | assert.throws(() => { |
||
| 24 | geezConverter.convert($number); |
||
| 25 | }, NotAnIntegerArgumentException); |
||
| 26 | }); |
||
| 27 | }); |
||
| 28 | }); |
||
| 29 | |||
| 30 | }); |
||
| 31 |